using System.Collections;
using MDSAdministration;

namespace MDSAdministration
{
    public class ComparedBasedSorting : IComparer
    {
        public int Compare(object x, object y)
        {
            var cx = (ComparedSortBase)x;
            var cy = (ComparedSortBase)y;

            return cx.SortOrder.CompareTo(cy.SortOrder);
        }
    }
}